package site.oldpei.manage.erupt.entity;

import lombok.*;
import xyz.erupt.annotation.Erupt;
import xyz.erupt.annotation.EruptField;
import xyz.erupt.annotation.sub_field.Edit;
import xyz.erupt.annotation.sub_field.View;
import xyz.erupt.jpa.model.BaseModel;

import javax.persistence.Entity;
import javax.persistence.Table;

@EqualsAndHashCode(callSuper = true)
@Erupt(name = "视频标签",
        desc = "视频标签下钻类")
@Table(name = "p_vedio_tag")
@Entity
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class VedioTag extends BaseModel {
    // VedioInfo 表的主键
    private Long vedioId;

    @EruptField(
            views = @View(title = "视频标签"),
            edit = @Edit(title = "视频标签", notNull = true)
    )
    private String tag;
}
